<!-- 图标插件 -->
<template>
  <div class="svgIcon">
    <!-- 企 -->
    <svg
      v-if="type == 0"
      xmlns="http://www.w3.org/2000/svg"
      width="16"
      height="16"
      viewBox="0 0 16 16"
    >
      <path
        id="icon_tree_qi_s"
        d="M232.742,377.178h-8.889a3.556,3.556,0,0,0-3.556,3.556v8.888a3.556,3.556,0,0,0,3.556,3.556h8.888a3.556,3.556,0,0,0,3.556-3.555v-8.889A3.557,3.557,0,0,0,232.742,377.178Zm0,12.384h-8.867v-.723h1.318V385.05H226v3.789h2.021V383.38h.811v2.159h2.978v.712h-2.978v2.588h3.906Zm-.107-4.873a12.777,12.777,0,0,1-4.3-3.359,14.275,14.275,0,0,1-4.424,3.593q-.253-.371-.566-.8a11.374,11.374,0,0,0,4.638-3.663h1.055l-.195.264a9.8,9.8,0,0,0,4.326,3.125Q232.956,384.161,232.634,384.689Z"
        transform="translate(-220.297 -377.178)"
        :fill="color"
      />
    </svg>

    <!-- 厂 -->
    <svg
      v-if="type == 1"
      xmlns="http://www.w3.org/2000/svg"
      width="16"
      height="16"
      viewBox="0 0 16 16"
    >
      <path
        id="icon_tree_chang"
        d="M200.742,401.178h-8.889a3.556,3.556,0,0,0-3.556,3.556v8.888a3.556,3.556,0,0,0,3.556,3.556h8.888a3.556,3.556,0,0,0,3.556-3.555v-8.889A3.557,3.557,0,0,0,200.742,401.178Zm.263,4.7h-7.266v2.295a12.979,12.979,0,0,1-.322,3.321,6.768,6.768,0,0,1-1.26,2.373,5.637,5.637,0,0,0-.713-.615,5.737,5.737,0,0,0,1.143-2.051,10.925,10.925,0,0,0,.273-2.852v-3.271h8.145Z"
        transform="translate(-188.297 -401.178)"
        :fill="color"
      />
    </svg>
    <!-- 车 -->
    <svg
      v-if="type == 2"
      xmlns="http://www.w3.org/2000/svg"
      width="16"
      height="16"
      viewBox="0 0 16 16"
    >
      <path
        id="icon_tree_che"
        d="M200.742,425.178h-8.889a3.556,3.556,0,0,0-3.556,3.556v8.888a3.556,3.556,0,0,0,3.556,3.556h8.888a3.556,3.556,0,0,0,3.556-3.555v-8.889A3.557,3.557,0,0,0,200.742,425.178Zm.224,10.782h-3.9v2.051h-.761V435.96h-4.756v-.722h4.756v-1.67h-3.584v-.713q.658-1.176,1.211-2.285h-2.012v-.723h2.363q.381-.79.7-1.543l.733.225q-.322.693-.62,1.318H200.6v.723H194.75q-.645,1.323-1.177,2.295h2.735V430.98h.761v1.885h2.823v.7h-2.823v1.67h3.9Z"
        transform="translate(-188.297 -425.178)"
        :fill="color"
      />
    </svg>
    <!-- 线 -->
    <svg
      v-if="type == 3"
      xmlns="http://www.w3.org/2000/svg"
      width="16"
      height="16"
      viewBox="0 0 16 16"
    >
      <path
        id="icon_tree_xian"
        d="M200.742,449.178h-8.889a3.556,3.556,0,0,0-3.556,3.556v8.888a3.556,3.556,0,0,0,3.556,3.556h8.888a3.556,3.556,0,0,0,3.556-3.555v-8.889A3.557,3.557,0,0,0,200.742,449.178Zm-2.052,3.243q.694.439,1.485,1.055l-.469.566q-.81-.691-1.435-1.132Zm-5.361-.107.742.293q-1,1.982-1.728,3.125.58-.02,1.177-.044.336-.6.7-1.3l.722.362q-1.191,2.061-2.236,3.525.87-.127,2.051-.332c-.039.241-.068.491-.088.752q-1.631.253-2.861.459l-.157-.733a12.662,12.662,0,0,0,1.49-2.075q-.792.045-1.49.113l-.185-.664A18.069,18.069,0,0,0,193.329,452.314Zm-1.65,8.955-.215-.742q1.719-.371,3.476-.811-.028.391-.029.742Q193.281,460.839,191.679,461.269Zm9.189-.205q-.283.831-.967.83a1.865,1.865,0,0,1-1.318-.586,3.9,3.9,0,0,1-.708-.933,16.087,16.087,0,0,1-3.013,1.509,8.184,8.184,0,0,0-.488-.664,15.443,15.443,0,0,0,3.179-1.528,10.394,10.394,0,0,1-.547-2.1l-2.085.293-.117-.7,2.1-.293q-.083-.684-.122-1.46l-1.767.2-.118-.7,1.846-.2q-.054-1.016-.1-2.334h.8q.024,1.26.064,2.246l3.266-.371.088.693-3.325.386c.023.515.06,1,.112,1.446l3.369-.474.088.693-3.364.479a9.2,9.2,0,0,0,.449,1.758,8.52,8.52,0,0,0,1.724-1.709l.635.478a11.6,11.6,0,0,1-2.041,1.919,2.952,2.952,0,0,0,.9,1.03q.645.381.83-.39.128-.625.205-1.387a6.539,6.539,0,0,0,.752.283A12.224,12.224,0,0,1,200.868,461.064Z"
        transform="translate(-188.297 -449.178)"
        :fill="color"
      />
    </svg>
    <!-- 工 -->

    <svg
      v-if="type == 4"
      xmlns="http://www.w3.org/2000/svg"
      width="16"
      height="16"
      viewBox="0 0 16 16"
    >
      <path
        id="icon_tree_gong"
        d="M200.742,473.178h-8.889a3.556,3.556,0,0,0-3.556,3.556v8.888a3.556,3.556,0,0,0,3.556,3.556h8.888a3.556,3.556,0,0,0,3.556-3.555v-8.889A3.557,3.557,0,0,0,200.742,473.178Zm.263,12.111h-9.424v-.762h4.277v-6.514h-3.72v-.781h8.32v.781h-3.74v6.514h4.287Z"
        transform="translate(-188.297 -473.178)"
        :fill="color"
      />
    </svg>

    <!-- 产 -->
    <svg
      v-if="type == 5"
      xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      width="16px"
      height="16px"
      viewBox="0 0 16 16"
      version="1.1"
    >
      <g
        id="页面-1"
        stroke="none"
        stroke-width="1"
        fill="none"
        fill-rule="evenodd"
      >
        <g
          :id="$i18n.t('mesMaterialStationModel.drawingBoard')"
          transform="translate(-598.000000, -319.000000)"
          :fill="color"
          fill-rule="nonzero"
        >
          <g :id="$i18n.t('mesMaterialStationModel.newTextDocumentation')" transform="translate(598.000000, 319.000000)">
            <path
              d="M12.445,0 C14.4083053,0.00110383347 15.9994484,1.59269442 16,3.556 L16,3.556 L16,12.445 C15.9994478,14.408534 14.4075341,16 12.444,16 L12.444,16 L3.556,16 C1.59207543,16 0,14.4079246 0,12.444 L0,12.444 L0,3.556 C0,1.59207543 1.59207543,0 3.556,0 L3.556,0 Z M10.03125,5.2671875 C9.9140625,5.4625 9.9140625,5.4625 9.6796875,5.853125 C9.23535156,6.57089844 9.23535156,6.57089844 8.97045898,6.98959961 L8.8984375,7.103125 L4.25,7.103125 L4.25,8.4703125 C4.328125,10.8140625 4.328125,10.8140625 3.1953125,12.025 C3.546875,12.259375 3.546875,12.259375 3.8984375,12.5328125 C5.02864583,11.0744792 5.02864583,11.0744792 5.0359375,8.83350694 L5.03125,8.509375 L5.03125,7.80625 L12.4140625,7.80625 L12.4140625,7.103125 L9.7578125,7.103125 C9.9921875,6.790625 9.9921875,6.790625 10.3828125,6.2046875 C10.4739583,6.07447917 10.4739583,6.07447917 10.5477431,5.9703125 L10.6779514,5.78802083 L10.7300347,5.71640625 L10.7300347,5.71640625 L10.7734375,5.6578125 L10.03125,5.2671875 Z M6.203125,5.228125 L5.5390625,5.6578125 C5.7734375,5.93125 5.7734375,5.93125 6.28125,6.5953125 C6.515625,6.9078125 6.515625,6.9078125 6.6328125,7.0640625 L7.296875,6.634375 C7.1015625,6.321875 7.1015625,6.321875 6.6328125,5.775 C6.4140625,5.49375 6.4140625,5.49375 6.2703125,5.3125 L6.203125,5.228125 Z M8.46875,3.196875 L7.609375,3.3140625 C7.6875,3.4703125 7.6875,3.4703125 7.765625,3.7828125 C7.85351562,4.0171875 7.85351562,4.0171875 7.89746094,4.18564453 L7.921875,4.290625 L3.5078125,4.290625 L3.5078125,4.99375 L12.6484375,4.99375 L12.6484375,4.290625 L8.78125,4.290625 C8.7421875,4.0953125 8.7421875,4.0953125 8.625,3.74375 C8.53125,3.43125 8.53125,3.43125 8.4875,3.26875 L8.46875,3.196875 Z"
              id="icon_tree_che"
            />
          </g>
        </g>
      </g>
    </svg>


    <!-- 其他 -->
    <svg
      xmlns="http://www.w3.org/2000/svg"
      width="16"
      height="16"
      viewBox="0 0 16 16"
      v-if="type==-1"
    >
      <g transform="translate(-16 -961)" :fill="color">
        <rect
          class="a"
          width="16"
          height="16"
          rx="4"
          transform="translate(16 961)"
        />
        <path
          class="b"
          d="M15242.58-9886.321a1.962,1.962,0,0,1,0-2.784l1.39-1.394a2.074,2.074,0,0,1,.532-.38l.622.619-.449.45v0h0s0,0-.006,0l-1.394,1.394a.984.984,0,0,0-.287.7.992.992,0,0,0,.287.7.982.982,0,0,0,.7.284.974.974,0,0,0,.7-.284l1.395-1.4a.033.033,0,0,1,.012-.016.054.054,0,0,1,.013-.014l.428-.43.622.621a2.055,2.055,0,0,1-.38.536l-1.394,1.391a1.942,1.942,0,0,1-1.391.581A1.935,1.935,0,0,1,15242.58-9886.321Zm.842-7.405.59-.59,6.479,6.48-.59.59Zm1.419,4.659a.515.515,0,0,1,.156-.366l.478-.473.708.705-.483.484a.489.489,0,0,1-.358.146A.5.5,0,0,1,15244.841-9889.067Zm4.027-2.159.412-.411.006,0a.109.109,0,0,1,.016-.01.13.13,0,0,0,.029-.025l1.394-1.4a.959.959,0,0,0,.286-.691.965.965,0,0,0-.286-.7.978.978,0,0,0-.7-.283.985.985,0,0,0-.7.283l-1.391,1.394-.459.46-.616-.616a1.969,1.969,0,0,1,.38-.538l1.394-1.392a1.951,1.951,0,0,1,1.391-.58,1.951,1.951,0,0,1,1.391.58,1.962,1.962,0,0,1,.58,1.389,1.972,1.972,0,0,1-.58,1.4l-1.391,1.394a1.987,1.987,0,0,1-.536.379Zm-1.033-1.036.476-.472a.5.5,0,0,1,.36-.159.5.5,0,0,1,.5.493.5.5,0,0,1-.145.354h0l-.491.491Z"
          transform="translate(-15223.001 10859.739)"
          fill="#fff"
        />
      </g>
    </svg>
  </div>
</template>

<script>
//例如：import 《组件名称》 from '《组件路径》';

export default {
  name: "",
  //import引入的组件需要注入到对象中才能使用
  components: {},
  props: {
    color: {
      type: String,
      default: "#b6c0c9",
    },
    type: {
      type: Number,
      default: 0, // 0 企业  1厂  2车  3.线 4工,5产
    },
  },
  data() {
    //这里存放数据
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style scoped lang="scss"></style>
